apply plugin: 'groovy'
apply plugin: 'idea'
apply plugin: 'eclipse'

def artifactory = 'buildserver.supportspace.com'
group = 'com.supportspace'
archivesBaseName = 'swagger-gen-groovy'
version = '0.1'

buildscript {
    repositories {
        maven { url 'https://repo.jfrog.org/artifactory/gradle-plugins' }
    }
    dependencies {
        classpath(group: 'org.jfrog.buildinfo', name: 'build-info-extractor-gradle', version: '2.0.16')
    }
}

repositories {
    mavenCentral()
    mavenLocal()
    mavenCentral(artifactUrls: ['https://maven.springframework.org/milestone'])
}

ext {
    swagger_annotations_version = "1.5.8"
    jackson_version = "2.10.1"
}

dependencies {
    compile 'org.codehaus.groovy:groovy-all:2.4.6'
    compile "io.swagger:swagger-annotations:$swagger_annotations_version"
    compile "com.fasterxml.jackson.core:jackson-core:$jackson_version"
    compile "com.fasterxml.jackson.core:jackson-annotations:$jackson_version"
    compile "com.fasterxml.jackson.core:jackson-databind:$jackson_version"
    compile "com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:$jackson_version"
    compile "com.fasterxml.jackson.datatype:jackson-datatype-joda:2.1.5"
    compile 'org.codehaus.groovy.modules.http-builder:http-builder:0.7.1'
}

task wrapper(type: Wrapper) { gradleVersion = '1.6' }
